<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */


class b2c_mdl_goods_opinions_image extends dbeav_model{

	/**
	 * 构造方法
	 * @param object model相应app的对象
	 * @return null
	 */
    public function __construct($app){
        parent::__construct($app);
//        $this->use_meta();
    }
//    var $subSdf = array(
//        'default' => array(
//            'goods_id' => array('name'),
//            'user_id' => array('name')
//        )   
//    );
	/**
	 * 保存的方法
	 * @param mixed 保存的数据内容
	 * @return boolean
	 */
    public function save(&$aData){
        if(parent::save($aData)){
            return true;
        }else{
            return false;
        }
    }

    function getList($cols='*', $filter=array(), $offset=0, $limit=-1, $orderType=null){
        $filters = $filter;
        $list = parent::getList('*',$filters,0,-1);
 //       var_dump($list);exit;

        return $list;
    }
    function delete($filter, $subSdf = 'delete') {
        parent::delete($filter, $subSdf);
    }


//    function toRemove($id,&$msg=''){
//        parent::update(array('status' => 'del'),array('opinions_id'=>intval($id)));
//        return true;
//    }



}
